package com.gk.carshopsys.dao;

import com.gk.carshopsys.pojo.CarOrder;
import com.gk.carshopsys.pojo.CarOrderImport;
import com.gk.carshopsys.pojo.PartOrder;
import com.gk.carshopsys.pojo.PartOrderImport;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
@Mapper
public interface PartOrderDao {
    public Long findOrderMouthCountIncome();

    public Long findOrderMouthCount();

    public List<PartOrder> findPartOrder(HashMap<String, String> params);

    public int addPartOrder(PartOrder partOrder);

    //批量新增库存
    public int addPartOrderByList(List<PartOrderImport> list);

    public int updatePartOrderById(PartOrder partOrder);

    //删除汽车订单
    public int delPartOrder(List<Integer> partorder);
}
